{% extends "base.html" %} 

{% block content %}
<h1 class="pl-2">Author List</h1>

{% if author_list %}

    <div class="card mb-3" style="max-width: 20rem;">
        {% for author in author_list %}
        <p class="card-text mt-2 mb-2">
            <a href="{{ author.get_absolute_url }}">{{ author }}</a> <br>
        </p>
        {% endfor %}
    </div>

{% else %}
<p>There are no books in the library.</p>
{% endif %} {% endblock %}